package org.example.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 花未眠
 * 资源类
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_resource")
public class Resource {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String resourceName;
    private String url;
    private String requestMethod;
    private Integer parentId;
    private Integer isAnonymous;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
